import Vue from 'vue'
import VueRouter from 'vue-router'

import Login from '@/views/Login'
import Item from '@/views/Item'
import Home from '@/views/Home'
import Message from '@/views/Message'
import Mine from '@/views/Mine'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/item',
    component: Item
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/message',
    component: Message
  },
  {
    path: '/Mine',
    component: Mine
  }

]

const router = new VueRouter({
  routes
})

export default router
